Integrand size = 28, antiderivative size = 123 \[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h}+\frac {2 b p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \operatorname {PolyLog}\left (2,-\frac {h (e+f x)}{f g-e h}\right )}{h}-\frac {2 b^2 p^2 q^2 \operatorname {PolyLog}\left (3,-\frac {h (e+f x)}{f g-e h}\right )}{h} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2443, 2481, 2421, 6724, 2495} \[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\frac {2 b p q \operatorname {PolyLog}\left (2,-\frac {h (e+f x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}+\frac {\log \left (\frac {f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{h}-\frac {2 b^2 p^2 q^2 \operatorname {PolyLog}\left (3,-\frac {h (e+f x)}{f g-e h}\right )}{h} \]
[In]
[Out]
Rule 2421
Rule 2443
Rule 2481
Rule 2495
Rule 6724
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^2}{g+h x} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h}-\text {Subst}\left (\frac {(2 b f p q) \int \frac {\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h}-\text {Subst}\left (\frac {(2 b p q) \text {Subst}\left (\int \frac {\left (a+b \log \left (c d^q x^{p q}\right )\right ) \log \left (\frac {f \left (\frac {f g-e h}{f}+\frac {h x}{f}\right )}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h}+\frac {2 b p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{h}-\text {Subst}\left (\frac {\left (2 b^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h}+\frac {2 b p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{h}-\frac {2 b^2 p^2 q^2 \text {Li}_3\left (-\frac {h (e+f x)}{f g-e h}\right )}{h} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(324\) vs. \(2(123)=246\).
Time = 0.05 (sec) , antiderivative size = 324, normalized size of antiderivative = 2.63 \[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\frac {a^2 \log (g+h x)-2 a b p q \log (e+f x) \log (g+h x)+b^2 p^2 q^2 \log ^2(e+f x) \log (g+h x)+2 a b \log \left (c \left (d (e+f x)^p\right )^q\right ) \log (g+h x)-2 b^2 p q \log (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right ) \log (g+h x)+b^2 \log ^2\left (c \left (d (e+f x)^p\right )^q\right ) \log (g+h x)+2 a b p q \log (e+f x) \log \left (\frac {f (g+h x)}{f g-e h}\right )-b^2 p^2 q^2 \log ^2(e+f x) \log \left (\frac {f (g+h x)}{f g-e h}\right )+2 b^2 p q \log (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )+2 b p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \operatorname {PolyLog}\left (2,\frac {h (e+f x)}{-f g+e h}\right )-2 b^2 p^2 q^2 \operatorname {PolyLog}\left (3,\frac {h (e+f x)}{-f g+e h}\right )}{h} \]
[In]
[Out]
\[\int \frac {{\left (a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )\right )}^{2}}{h x +g}d x\]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\int { \frac {{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}^{2}}{h x + g} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\int \frac {\left (a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}\right )^{2}}{g + h x}\, dx \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\int { \frac {{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}^{2}}{h x + g} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\int { \frac {{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}^{2}}{h x + g} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{g+h x} \, dx=\int \frac {{\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right )}^2}{g+h\,x} \,d x \]
[In]
[Out]